import Vue from 'vue'
import App from './App'
import router from './router'
import store from './store/'
import moment from 'moment'
import common from './config/common.js'
import filters from './config/filter'
import ElementUI from 'element-ui'
import echarts from 'echarts'
/*import 'element-ui/lib/theme-chalk/index.css'*/
import '../theme/index.css'
Vue.prototype.$echarts = echarts;
Vue.prototype.$moment=moment;
Vue.config.productionTip = false;



console.info('filter init');
Object.keys(filters).forEach(key => {
    console.info('key='+key);
  Vue.filter(key, filters[key])

});




Vue.use(ElementUI);
Vue.use(common);

new Vue({
	el: '#app',
	router,
	store,
	template: '<App/>',
	components: { App }
})
